<%@ page language="java" import="java.sql.*" pageEncoding="utf-8"%>
<html>
  <body>
    <%!
    public Connection getConnection() throws Exception{
    String driverClass="com.mysql.jdbc.Driver";
    String url="jdbc:mysql://localhost:3306/vote?useSSL=false";
    String user="root";
    String password="womenilu2580";
    Connection conn;
    Class.forName(driverClass);
    conn=DriverManager.getConnection(url,user,password);
    return conn;
    }
     %>
  </body>
</html>
